import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15

// 报警管理页面 - 占位页面
Item {
    id: root
    
    Rectangle {
        anchors.fill: parent
        color: "#f5f5f5"
        
        ColumnLayout {
            anchors.centerIn: parent
            spacing: 20
            
            Text {
                text: "🚨 报警管理"
                font.pixelSize: 32
                font.bold: true
                color: "#333"
                Layout.alignment: Qt.AlignHCenter
            }
            
            Text {
                text: "报警记录、阈值配置与事件管理"
                font.pixelSize: 16
                color: "#666"
                Layout.alignment: Qt.AlignHCenter
            }
            
            Rectangle {
                width: 400
                height: 2
                color: "#ef4444"
                Layout.alignment: Qt.AlignHCenter
            }
            
            Text {
                text: "💡 待开发功能："
                font.pixelSize: 14
                color: "#888"
                Layout.alignment: Qt.AlignHCenter
            }
            
            Column {
                spacing: 10
                Layout.alignment: Qt.AlignHCenter
                
                Text {
                    text: "✓ 报警列表（按级别分类）"
                    font.pixelSize: 12
                    color: "#666"
                }
                Text {
                    text: "✓ 报警确认功能"
                    font.pixelSize: 12
                    color: "#666"
                }
                Text {
                    text: "✓ 阈值配置对话框"
                    font.pixelSize: 12
                    color: "#666"
                }
                Text {
                    text: "✓ 报警统计与过滤"
                    font.pixelSize: 12
                    color: "#666"
                }
            }
        }
    }
    
    Component.onCompleted: {
        console.log("✅ AlarmPage 加载完成")
    }
}

